!function(e) {
    var t = {};
    function n(o) {
        if (t[o])
            return t[o].exports;
        var a = t[o] = {
            i: o,
            l: !1,
            exports: {}
        };
        return e[o].call(a.exports, a, a.exports, n),
            a.l = !0,
            a.exports
    }
    n.m = e,
        n.c = t,
        n.d = function(e, t, o) {
            n.o(e, t) || Object.defineProperty(e, t, {
                configurable: !1,
                enumerable: !0,
                get: o
            })
        }
        ,
        n.n = function(e) {
            var t = e && e.__esModule ? function() {
                    return e.default
                }
                : function() {
                    return e
                }
            ;
            return n.d(t, "a", t),
                t
        }
        ,
        n.o = function(e, t) {
            return Object.prototype.hasOwnProperty.call(e, t)
        }
        ,
        n.p = "",
        n(n.s = 3)
}([function(e, t, n) {
    "use strict";
    var o = 0;
    function a(e) {
        if (!(this instanceof a))
            return new a(e);
        this._state = o,
            this._onFulfilled = [],
            this._onRejected = [],
            this._value = null,
            this._reason = null,
        s(e) && e(r(this.resolve, this), r(this.reject, this))
    }
    function c(e, t) {
        if (e !== t)
            if (function(e) {
                return e && s(e.then)
            }(t))
                try {
                    t.then(function(t) {
                        c(e, t)
                    }, function(t) {
                        e.reject(t)
                    })
                } catch (t) {
                    e.reject(t)
                }
            else
                e.resolve(t);
        else
            e.reject(new TypeError("A promise cannot be resolved with itself."))
    }
    function i(e, t, n) {
        return function(o) {
            if (s(t))
                try {
                    var a = t(o);
                    c(e, a)
                } catch (t) {
                    e.reject(t)
                }
            else
                e[n](o)
        }
    }
    function r(e, t) {
        var n = [].slice
            , o = n.call(arguments, 2)
            , a = function() {}
            , c = function() {
            return e.apply(this instanceof a ? this : t, o.concat(n.call(arguments)))
        };
        return a.prototype = e.prototype,
            c.prototype = new a,
            c
    }
    a.prototype = {
        constructor: a,
        then: function(e, t) {
            var n = new a;
            return this._onFulfilled.push(i(n, e, "resolve")),
                this._onRejected.push(i(n, t, "reject")),
                this.flush(),
                n
        },
        flush: function() {
            var e = this._state;
            if (e !== o) {
                var t = 1 === e ? this._onFulfilled.slice() : this._onRejected.slice()
                    , n = 1 === e ? this._value : this._reason;
                setTimeout(function() {
                    l(t, function(e) {
                        try {
                            e(n)
                        } catch (e) {}
                    })
                }, 0),
                    this._onFulfilled = [],
                    this._onRejected = []
            }
        },
        resolve: function(e) {
            this._state === o && (this._state = 1,
                this._value = e,
                this.flush())
        },
        reject: function(e) {
            this._state === o && (this._state = 2,
                this._reason = e,
                this.flush())
        },
        always: function(e) {
            return this.then(e, e)
        }
    },
        a.defer = function() {
            var e = {};
            return e.promise = new a(function(t, n) {
                    e.resolve = t,
                        e.reject = n
                }
            ),
                e
        }
        ,
        a.all = function(e) {
            var t = a.defer()
                , n = e.length
                , o = [];
            return l(e, function(e, a) {
                e.then(function(e) {
                    o[a] = e,
                    0 === --n && t.resolve(o)
                }, function(e) {
                    t.reject(e)
                })
            }),
                t.promise
        }
    ;
    var s = function(e) {
        return function(t) {
            return {}.toString.call(t) == "[object " + e + "]"
        }
    }("Function");
    function l(e, t) {
        for (var n = 0, o = e.length; n < o; n++)
            t(e[n], n)
    }
    e.exports = a
}
    , function(e, t, n) {
        "use strict";
        var o = window
            , a = document
            , c = document.head || document.getElementsByTagName("head")[0]
            , i = n(0);
        function r(e) {
            var t = [];
            for (var n in e)
                e.hasOwnProperty(n) && t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
            return t.join("&")
        }
        e.exports = {
            loadScript: function(e) {
                var t = i.defer()
                    , n = a.createElement("script");
                function o() {
                    n.onreadystatechange = n.onload = null,
                        c.removeChild(n),
                        n = null,
                        t.resolve()
                }
                return n.charset = "utf-8",
                    n.async = !0,
                    "onload"in n ? n.onload = o : n.onreadystatechange = function() {
                        /loaded|complete/.test(n.readyState) && o()
                    }
                    ,
                "onerror"in n && (n.onerror = function() {
                        t.reject()
                    }
                ),
                    setTimeout(function() {
                        t.reject()
                    }, 3e3),
                    n.src = e,
                    c.appendChild(n),
                    t.promise
            },
            jsonp: function(e) {
                var t, n = 0;
                if (e.timeout = 3e3,
                    e.times = 3,
                !(e = e || {}).url || !e.callback)
                    throw new Error("参数不合法");
                var c = ("jsonp_" + Math.random()).replace(".", "")
                    , i = a.getElementsByTagName("script")[0]
                    , s = "";
                e.data ? (e.data[e.callback] = c,
                    s += r(e.data)) : s += e.callback + "=" + c;
                var l = a.createElement("script");
                i.parentNode.insertBefore(l, i),
                    o[c] = function(n) {
                        o[c] = function() {
                            report("回调已执行过,不再执行"),
                                o[c] = null
                        }
                        ;
                        try {
                            l.parentNode && l.parentNode.removeChild(l)
                        } catch (e) {}
                        clearInterval(t),
                        e.success && e.success(n)
                    }
                    ,
                    l.src = e.url + (-1 == e.url.indexOf("?") ? "?" : "&") + s,
                    console.log("jsonp:", l.src),
                e.timeout && (t = setInterval(function() {
                    var i;
                    if (++n >= e.times) {
                        o[c] = function() {}
                            ,
                            clearInterval(t);
                        try {
                            l.parentNode && l.parentNode.removeChild(l)
                        } catch (e) {}
                        e.fail(1)
                    } else
                        try {
                            l.parentNode && l.parentNode.removeChild(l),
                                l = a.createElement("script"),
                                (i = a.getElementsByTagName("script")[0]).parentNode.insertBefore(l, i),
                                l.src = e.url + (-1 == e.url.indexOf("?") ? "?" : "&") + s + "&t=" + Math.random()
                        } catch (e) {}
                }, e.timeout))
            },
            jsonp2: function(e) {
                var t = ("jsonp_" + Math.random()).replace(".", "")
                    , n = a.getElementsByTagName("script")[0]
                    , c = "";
                e.data ? (e.data[e.callback] = t,
                    c += r(e.data)) : c += e.callback + "=" + t;
                var i = a.createElement("script");
                n.parentNode.insertBefore(i, n),
                    o[t] = function(t) {
                        e.success && e.success(t)
                    }
                    ,
                    i.src = e.url + (-1 == e.url.indexOf("?") ? "?" : "&") + c
            },
            extend: function(e) {
                for (var t, n, o = [].slice.call(arguments), a = o.length, c = 1; c < a; c++)
                    for (n in t = o[c])
                        t.hasOwnProperty(n) && ("Flag" === n && e[n] ? e[n] = e[n] | t[n] : e[n] = t[n]);
                return e
            }
        }
    }
    , function(e, t, n) {
        "use strict";
        var o = n(1)
            , a = {
            SendMethod: 8,
            LogVal: "_nvc",
            MaxMCLog: 10,
            MaxKSLog: 10,
            MaxMPLog: 50,
            MaxTCLog: 10,
            MaxFocusLog: 1,
            MPInterval: 4,
            Sync: !0
        }
            , c = "?_t=" + Math.ceil((new Date).getTime() / 36e5)
            , i = {
            cn: {
                umid: "//g.alicdn.com/security/umscript/3.3.25/um.js",
                awsc: "//g.alicdn.com/AWSC/AWSC/awsc.js" + c,
                umid_serUrl: "//ynuf.aliapp.org/service/um.json",
                nvc_sendUrl: "//cf.aliyun.com/nvc/nvcAnalyze.jsonp",
                nc_url: "//g.alicdn.com/sd/ncpc/nc.js" + c,
                nc_h5_url: "//g.alicdn.com/sd/nch5/index.js" + c,
                lc_url: "//g.alicdn.com/sd/quizCaptcha/0.0.1/index.js",
                lc_url2: "//g.alicdn.com/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"
            },
            us: {
                umid: "//aeis.alicdn.com/security/umscript/3.3.25/um.js",
                umid_serUrl: "//us.ynuf.aliapp.org/service/um.json"
            }
        }
            , r = function() {
            for (var e, t = document.getElementsByTagName("script"), n = /ctlv?\.js/, o = 0; o < t.length; o++)
                if (e = s(t[o]),
                    n.test(e))
                    return t[o];
            return t[t.length - 1]
        }().getAttribute("data-env") || "cn";
        function s(e) {
            return e.hasAttribute ? e.src : e.getAttribute("src", 4)
        }
        e.exports = {
            env: r,
            url: i[r],
            map: {
                def: o.extend({
                    Flag: 1670350
                }, a),
                pc: o.extend({
                    Flag: 97422
                }, a),
                h5: o.extend({
                    Flag: 1670350
                }, a)
            }
        }
    }
    , function(e, t, n) {
        "use strict";
        var o = window;
        o.__nvc_uaboption = new Object,
            o.__nvc_uaboption.MPInterval = 4,
            o.__nvc_uaboption.MMInterval = 5,
            o.__nvc_uaboption.MaxMCLog = 12,
            o.__nvc_uaboption.MaxKSLog = 14,
            o.__nvc_uaboption.MaxMPLog = 5,
            o.__nvc_uaboption.MaxFocusLog = 6,
            o.__nvc_uaboption.SendInterval = 5,
            o.__nvc_uaboption.SendMethod = 8,
            o.__nvc_uaboption.GPInterval = 50,
            o.__nvc_uaboption.MaxGPLog = 1,
            o.__nvc_uaboption.MaxTCLog = 12,
            o.__nvc_uaboption.Flag = 3767502,
            o.__nvc_uaboption.OnlyHost = 1,
            o.__nvc_uaboption.MaxMTLog = 500,
            o.__nvc_uaboption.MinMTDwnLog = 30,
            o.__nvc_uaboption.MaxNGPLog = 1,
        NVC_Opt.customWidth || (NVC_Opt.customWidth = 300);
        var a = n(0)
            , c = n(2)
            , i = n(1)
            , r = n(4)
            , s = o.UA_Opt = o.UA_Opt || NVC_Opt;
        s.Token = NVC_Opt.token,
            (o.nvc = {
                config: function() {
                    o.UA_Opt && o.UA_Opt.LogVal || (i.extend(s, c.map.def),
                    s.LogVal && (o[s.LogVal] = ""))
                }
            }).config(),
            o.__nvc__umid = "defaultToken1_awsc_not_loaded@@" + location.href + "@@" + (new Date).getTime(),
            i.loadScript(c.url.awsc).then(function() {
                o.__nvc__umid = "defaultToken1_um_not_loaded@@" + location.href + "@@" + (new Date).getTime(),
                    o.AWSC.use("um", function(e, t) {
                        "loaded" === e ? (o.__nvc__umid = "defaultToken3_init_callback_not_called@@" + location.href + "@@" + (new Date).getTime(),
                            t.init({
                                timeout: 3e3,
                                timestamp: (new Date).getTime(),
                                serviceUrl: c.url.umid_serUrl,
                                appName: NVC_Opt.appkey,
                                enableFY: 1,
                                jf: 1
                            }, function(e, t) {
                                o.__nvc__umid = "success" === e ? t.tn : "defaultToken4_init_failed with " + e + "@@" + location.href + "@@" + (new Date).getTime()
                            })) : o.__nvc__umid = "defaultToken2_load_failed with " + e + "@@" + location.href + "@@" + (new Date).getTime()
                    }),
                    o.AWSC.use("uab", function(e, t) {
                        "loaded" === e && (o.__nvc__uab = t)
                    })
            }),
            o.getNVCVal = function() {
                o.NVC_Data.a = NVC_Opt.appkey,
                    o.NVC_Data.c = NVC_Opt.token,
                    o.NVC_Data.d = NVC_Opt.scene,
                    o.NVC_Data.h = NVC_Opt.trans || {},
                    o.NVC_Data.h.umidToken = o.__nvc__umid;
                var e = o.NVC_Data;
                return e.b = o.__nvc__uab && o.__nvc__uab.getUA && o.__nvc__uab.getUA(o.__nvc_uaboption) || o[s.LogVal],
                NVC_Result.nvcPreRes.c && (e.e = NVC_Result.nvcPreRes.c),
                NVC_Result.sessionId && (e.f = NVC_Result.sessionId),
                NVC_Result.sig && (e.g = NVC_Result.sig),
                    encodeURIComponent(JSON.stringify(e))
            }
            ,
            o.getNC = function() {
                var e = a.defer();
                return NVC_Opt.popUp && r.insertDom(1),
                    o.acjs = 1,
                    i.loadScript(c.url.nc_url).then(function() {
                        var t = {
                            language: "zh_CN",
                            isEnabled: !0,
                            callback: function(e) {
                                NVC_Result.sessionId = e.csessionid,
                                    NVC_Result.sig = e.sig,
                                NVC_Opt.popUp && r.hideDom(1),
                                NVC_Opt.nvcCallback && NVC_Opt.nvcCallback(getNVCVal())
                            },
                            failCallback: function(e) {},
                            error: function(e) {}
                        }
                            , n = new noCaptcha;
                        n.init(i.extend(t, NVC_Opt)),
                            o._nvc_nc = n,
                            e.resolve()
                    }),
                    NVC_Data.c = s.Token,
                    e.promise
            }
            ,
            o.getLC = function() {
                var e = a.defer();
                return NVC_Opt.popUp && (NVC_Opt.customWidth = 480,
                    r.insertDom(3)),
                    i.loadScript(c.url.lc_url).then(function() {
                        var t = new quizCaptcha({
                            appKey: NVC_Opt.appkey,
                            scene: NVC_Opt.scene,
                            renderTo: NVC_Opt.renderTo,
                            popUp: !NVC_Opt.popUp && NVC_Opt.popUp,
                            success: function(e) {
                                NVC_Result.sessionId = e.sessionId,
                                    NVC_Result.sig = e.sig,
                                NVC_Opt.popUp && r.hideDom(3),
                                NVC_Opt.nvcCallback && NVC_Opt.nvcCallback(getNVCVal()),
                                NVC_Opt.callback && NVC_Opt.callback({
                                    value: e.sig,
                                    csessionid: e.sessionId
                                })
                            },
                            token: NVC_Opt.token
                        });
                        t.init(),
                            o._nvc_qc = t,
                            e.resolve()
                    }),
                    NVC_Data.c = s.Token,
                    e.promise
            }
            ,
            o.getSC = function() {
                var e = a.defer();
                return NVC_Opt.popUp && r.insertDom(2),
                    o.acjs = 1,
                    i.loadScript(c.url.nc_url).then(function() {
                        var t = {
                            elementID: [],
                            is_Opt: "",
                            type: "scrape",
                            width: 300,
                            height: 100,
                            isEnabled: !0,
                            timeout: 3e3,
                            times: 3,
                            language: "cn",
                            foreign: 0,
                            apimap: {},
                            objects: ["//img.alicdn.com/tps/TB1BT9jPFXXXXbyXFXXXXXXXXXX-80-80.png"],
                            callback: function(e) {
                                NVC_Result.sessionId = e.sessionId,
                                    NVC_Result.sig = e.sig,
                                NVC_Opt.popUp && r.hideDom(2),
                                NVC_Opt.nvcCallback && NVC_Opt.nvcCallback(getNVCVal())
                            },
                            failCallback: function(e) {},
                            error: function(e) {}
                        }
                            , n = new noCaptcha(i.extend(t, NVC_Opt));
                        o._nvc_sc = n,
                            e.resolve()
                    }),
                    NVC_Data.c = s.Token,
                    e.promise
            }
            ,
            o.nvcReset = function() {
                o.NVC_Data && o.NVC_Data.f && (o.NVC_Data.f = null),
                o.NVC_Data && o.NVC_Data.g && (o.NVC_Data.g = null),
                o.NVC_Result && o.NVC_Result.sessionId && (o.NVC_Result.sessionId = null),
                o.NVC_Result && o.NVC_Result.sig && (o.NVC_Result.sig = null)
            }
            ,
            o.NVC_Data = {
                a: NVC_Opt.appkey,
                c: NVC_Opt.token,
                d: NVC_Opt.scene
            },
        NVC_Opt.trans && (NVC_Data.h = NVC_Opt.trans),
            NVC_Data.j = {},
            NVC_Data.j.test = 1,
            400 == NVC_Opt.capCode ? getNC() : 600 == NVC_Opt.capCode && getSC()
    }
    , function(e, t, n) {
        "use strict";
        var o = document
            , a = window;
        function c() {
            o.getElementById("nc_nvc_wrapper").style.display = "none"
        }
        e.exports = {
            insertDom: function(e) {
                var t = o.getElementById("nc_nvc_wrapper");
                if (t)
                    t.style.display = "";
                else {
                    var n = o.createElement("div");
                    n.id = "nc_nvc_wrapper",
                        n.style.position = "absolute",
                        n.style.zIndex = "999",
                        n.style.backgroundColor = "white";
                    var c = 0;
                    1 == e ? (n.style.borderBottom = "1px solid #ccc",
                        c = 17) : 2 == e ? (n.style.border = "1px solid #ccc",
                        c = 165) : 3 == e && (n.style.border = "1px solid #ccc",
                        c = 400),
                        n.style.left = parseInt((a.innerWidth - NVC_Opt.customWidth) / 2) + "px",
                        n.style.top = parseInt((a.innerHeight - c) / 2) + "px",
                        o.getElementById(NVC_Opt.renderTo.substring(1)).appendChild(n),
                        NVC_Opt.renderTo = "#nc_nvc_wrapper"
                }
            },
            hideDom: function(e) {
                var t = 400;
                2 == e && (t = 800),
                    setTimeout(c, t)
            }
        }
    }
]);
